#include <stdio.h>

int main(){
	int o=0,m=0,a,b,i=0;
	scanf("%d %d %d", &m, &a, &b);
	i=(m/(7*a+30*b))*30*b;
	if ((o=m%(7*a+30*b))>7*a) i+=o-7*a;
	(i >= m/2)?printf("I catch you, baicha"):printf("what a pity");
	return 0;
}
